package cn.asterly.cicada.web.utils;

import cn.asterly.cicada.common.model.Result;

public class CommonResult {
    /**
     * @Author likun
     * @Description
     * @Date 17:56 2019-01-16
     * @Param [status, successmessge, errormessge, errorCode]
     * @return cn.asterly.cicada.web.utils.Result
     **/
    public static Result commomResult(boolean status, String successmessge, String errormessge, Integer errorCode){
        Result result=new Result();
        if(status){
            result.setMessage(successmessge);
            result.setCode(1000);
        }else {
            result.setMessage(errormessge);
            result.setCode(errorCode);
        }
        return result;
    }

}
